package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 站内信
 * @author Rongjie
 */
@Data
@TableName("mall_message")
@KeySequence(value = "mall_message_SEQ")
@ApiModel(value = "MallMessage对象")
public class MallMessage implements Serializable{

       private String appKey;

       @TableId(value = "message_key", type = IdType.UUID)
       private String messageKey;

       @ApiModelProperty(value = "用户id")
       private String userKey;

       @ApiModelProperty(value = "是否已读", example = "1")
       private Integer isRead;

       private String readList;

       private Integer state;

       @ApiModelProperty(value = "信息类型 1，系统公告，2个人信息", example = "1")
       private Integer type;

       private String title;

       @ApiModelProperty(value = "信息内容")
       private String content;

       private Integer createTime;

       private Integer updateTime;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
